﻿@model WebApplication.Common.Alert.AlertModel

@if (Model != null)
{
    switch (Model.AlertType)
    {
        case WebApplication.Common.Alert.AlertType.Success:
        {
            <div class="alert alert-success">
                @Model.Message
            </div>
            break;
        }
        case WebApplication.Common.Alert.AlertType.Info:
        {
            <div class="alert alert-info">
                @Model.Message
            </div>
            break;
        }
        case WebApplication.Common.Alert.AlertType.Warning:
        {
            <div class="alert alert-warning">
                @Model.Message
            </div>
            break;
        }
        case WebApplication.Common.Alert.AlertType.Danger:
        {
            <div class="alert alert-danger">
                @ViewBag.Message
            </div>
            break;
        }
    }
}
